759c9b35cd4d74aff7b912324751b334bf598f47,spring-expression/src/main/java/org/springframework/expression/spel/ast/SpelNodeImpl.java,SpelNodeImpl,getValue,#ExpressionState#Class#,134

Before Change



	@SuppressWarnings("unchecked")
	protected final <T> T getValue(ExpressionState state, Class<T> desiredReturnType) throws EvaluationException {
		Object result = getValueInternal(state).getValue();
		if (result != null && desiredReturnType != null) {
			Class<?> resultType = result.getClass();
			if (desiredReturnType.isAssignableFrom(resultType)) {

After Change


	}

	protected final <T> T getValue(ExpressionState state, Class<T> desiredReturnType) throws EvaluationException {
		return ExpressionUtils.convertTypedValue(state.getEvaluationContext(), getValueInternal(state), desiredReturnType);
	}

	public abstract TypedValue getValueInternal(ExpressionState expressionState) throws EvaluationException;